package com.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.entity.CommentEntity;
import com.entity.CourseEntity;
import com.entity.view.CourseView;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 评论Dao
 */
public interface CommentDao extends BaseMapper<CommentEntity> {

    List<CommentEntity> selectListEntity(Pagination page, @Param("ew") Wrapper<CommentEntity> wrapper);

    List<CommentEntity> selectListWithCourseTitle(@Param("page") Page<CommentEntity> page,
                                                  @Param("ew") Wrapper<CommentEntity> wrapper);

}
